how to convert figma animation to code